package cn.nacos;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author:ZhouYang
 * @Description:
 * @Date: Created in 2020/8/25 15:50
 * @Modified By：生产者
 */
@EnableDiscoveryClient
@SpringBootApplication
@RestController
@Slf4j
public class ProviderApplication {



    public static void main(String[] args) {
        SpringApplication.run(ProviderApplication.class, args);
    }
    /**
     * @return
     */
    /**
     * @return
     */
    @GetMapping("/provider")
    public String provider() {
        log.info("服务提供者正常服务");
        return "服务提供者正常服务";
    }
}
